﻿<Window x:Class="Pingy.WhoIs"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WHOIS" Height="563" Width="465">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            
            <TextBlock Text="Server:" Margin="5" VerticalAlignment="Center" Grid.Column="0"/>
            <ComboBox x:Name="serverBox" ItemsSource="{Binding Path=Servers}" IsEditable="True" IsReadOnly="False" SelectedIndex="0" Margin="5" VerticalAlignment="Center" Grid.Column="1"/>
            
            <TextBlock Text="Host:" Margin="5" VerticalAlignment="Center" Grid.Row="1"/>
            <TextBox Text="{Binding Path=Address}" Margin="5" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1"/>
            <Button Content="Lookup" IsDefault="True" Click="lookup_Click" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2" Margin="5" Width="60"/>
        </Grid>

        <ScrollViewer Grid.Row="1" Margin="5" BorderBrush="Black">            
            <TextBox x:Name="whoisResult" TextWrapping="Wrap"/>
        </ScrollViewer>
    </Grid>
</Window>
